package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type BusNovelsRouter struct {
}

// InitBusNovelsRouter 初始化 BusNovels 路由信息
func (s *BusNovelsRouter) InitBusNovelsRouter(Router *gin.RouterGroup) {
	busNovelsRouter := Router.Group("busNovels").Use(middleware.OperationRecord())
	busNovelsRouterWithoutRecord := Router.Group("busNovels")
	var busNovelsApi = v1.ApiGroupApp.AutoCodeApiGroup.BusNovelsApi
	{
		busNovelsRouter.POST("createBusNovels", busNovelsApi.CreateBusNovels)   // 新建BusNovels
		busNovelsRouter.DELETE("deleteBusNovels", busNovelsApi.DeleteBusNovels) // 删除BusNovels
		busNovelsRouter.DELETE("deleteBusNovelsByIds", busNovelsApi.DeleteBusNovelsByIds) // 批量删除BusNovels
		busNovelsRouter.PUT("updateBusNovels", busNovelsApi.UpdateBusNovels)    // 更新BusNovels
	}
	{
		busNovelsRouterWithoutRecord.GET("findBusNovels", busNovelsApi.FindBusNovels)        // 根据ID获取BusNovels
		busNovelsRouterWithoutRecord.GET("getBusNovelsList", busNovelsApi.GetBusNovelsList)  // 获取BusNovels列表
	}
}
